from flask import session
from functools import wraps

def check_logged_in(func):
    @wraps(func)
    def wrapper(*args,**kwargs):
        if 'logged_in' in session:
            return func(*args,**kwargs)
        return 'you r not log in'
    return wrapper


def childFun(f):
        print("before the func run.")
        f()
        print("end the func run.")

@childFun
def funcToBeDecroted():
    print("i m the func to be 装饰的.")
		
funcToBeDecroted



